# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: prg <prg _at_ xannode _dot_ com>
# Contributor: Nico <d3sox at protonmail dot com>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>

pkgname=haruna
pkgver=0.10.3
pkgrel=2
pkgdesc='Video player built with Qt/QML on top of libmpv'
arch=(loong64 x86_64)
url='https://apps.kde.org/haruna/'
license=(GPL3)
depends=(kfilemetadata kio mpv kirigami2)
makedepends=(extra-cmake-modules kdoctools)
optdepends=('yt-dlp: YouTube support')
source=(https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
sha256sums=('4d21eaa709dd3b9f393e2252c4642127ab5da9781a74c903dafba64ae3f9d296'
            'SKIP')
validpgpkeys=(4E421C6554B89766DF9B7A37E12AB207C8755905) # George Florea Bănuș <georgefb899@gmail.com>

build() {
  cmake -B build -S $pkgname-$pkgver
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
